-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add eol to e2e and fix certifier logic #2396
base: main
Are you sure you want to change the base?
Conversation
6a26e15
to
958be3f
Compare
This PR should be merged after #2391 |
0ed7faf
to
ef928a8
Compare
49d5c82
to
72bb4f2
Compare
notGUACTypePackagePredicates(), | ||
packageversion.Not( | ||
packageversion.HasMetadataWith( | ||
hasmetadata.KeyEQ("endoflife"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, does this work? Are we not missing the timestamp field here per
guac/pkg/assembler/backends/ent/backend/search.go
Lines 128 to 130 in 72bb4f2
var pkgLatestScan []struct { | |
ID uuid.UUID `json:"id"` | |
LastScanTimeDB time.Time `json:"max"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The timestamp field is available on the hasMetadata
to check the values similar to the others.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Initially, I was trying to prevent duplicate nodes by not querying timestamp because the timestamp was new every time. But it's now using the date of last support as the timestamp so there won't be any duplicates. I've just updated it to match the others.
bf4eeeb
to
f826c12
Compare
Signed-off-by: robert-cronin <[email protected]>
Signed-off-by: robert-cronin <[email protected]>
f826c12
to
f13ce3b
Compare
Description of the PR
Fixes #2395
In addition to adding the e2e test query, this PR will also address some issues with the EOL certifier logic. For example, the parsing of purls now uses standard helper methods and the check for whether a node has EOL data is now more specific to mitigate false positives.
PR Checklist
-s
flag togit commit
.make generate
has been runmake generate
has been runmake generate
has been runcollectsub
protobuf has been changed,make proto
has been run